<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title><?=getValInArr(getSess(SESS_DIC),array('webInfo','webtitle'))?></title>
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport"/>
    <meta content="yes" name="apple-mobile-web-app-capable"/>
    <meta content="black" name="apple-mobile-web-app-status-bar-style"/>
    <meta content="telephone=no" name="format-detection"/>
    <script src="<?php echo base_url().'public/home/js/' ?>jquery.js"></script>
    <?php include_once "public/home/html/alert.php"  ?>
    <script type="text/javascript" src="<?php echo base_url().'public/home/js/' ?>function.js"></script>
    <script src="<?php echo base_url().'public/home/js/' ?>roll.js"></script>
    <?php include_once "public/home/html/broadcast.php"  ?>
    <link rel="stylesheet" href="<?php echo base_url().'public/home/css/' ?>index.css">
    <?php include_once "public/home/html/bootstrap.php"  ?>
    <style>
        body{
            background-color: #eee;
        }
        #img_size{
            height: 20px;
            width: 20px;
            margin-top: 5px;
            margin-left: 12px;
        }
        .clear{
            clear: both;
        }
        p{
            margin:0!important;
        }
        .aui-img-logo img{
            border-radius: 50%
        }           

    </style>
</head>
<body>
    <input type="hidden" name="url" value="<?php echo base_url()?>">
        <!-- <section class="aui-flexView">
            <header class="aui-navBar aui-navBar-fixed">
                <a href="javascript:;" class="aui-navBar-item">
                    <i class="icon icon-return"></i>
                </a>
                <div class="aui-center">
                    <span class="aui-center-title"></span>
                </div>
                <a href="javascript:;" class="aui-navBar-item">
                    <i class="icon icon-set"></i>
                </a>                
            </header>
        </section> -->
        <section class="aui-scrollView" style="margin-top: 1px;height: auto;background: #ffffff;">
            <div class="aui-take-content">
                <div class="aui-take-content-col">
                    <div class="aui-img-logo">
                        <!-- <img src="<?php echo base_url().'public/home/images/' ?>user-logo-003.png ?>" alt=""> -->
                        <!-- <img src="<?php echo $_SESSION[SESS_USER_WX]['headimgurl']?>" alt=""> -->
                    </div>
                    <div class="aui-img-text">
                        <h2><?php echo $detail['username'] ?></h2>
                        <p><?php if(isset($detail['class_name'])){echo $detail['dept_name'].",".$detail['class_name'];}else{echo $detail['dept_name'];} ?></p>
                    </div>
                </div>
            </div>


            <div class="broadcast" style="height: 30px;width:100%;background: #FFFFFF;margin-top: 10px;margin-bottom:10px ">
                <div  id="broadcast_Title" >
                    <div style="float: left">
                        <img src="<?php echo base_url(); ?>public/home/images/laba.png" alt="" id="img_size" >
                    </div>
                    <div id="broadcast" style="margin-left: 40px" ></div>
                    <div class='clear'></div>
                </div>
            </div>





            <div class="aui-course-list" >
                <a href="<?php echo base_url().'Home/Information/Index/';  ?>" class="aui-flex">
                    <div class="aui-cou-img">
                        <img src="<?php echo base_url().'public/home/images/' ?>icon-li-001.png ?>" alt="">
                    </div>
                    <div class="aui-flex-box">
                        <p>个人信息</p>
                    </div>
                </a>
                            <!-- <a href="<?php echo base_url().'Home/News/Index/';  ?>" class="aui-flex">
                                <div class="aui-cou-img">
                                    <img src="<?php echo base_url().'public/home/images/' ?>icon-li-002.png ?>" alt="">
                                </div>
                                <div class="aui-flex-box">
                                    <p>我的消息</p>
                                </div>
                            </a> -->
                            <a href="<?php echo base_url().'Home/My_feedback/Index/'.$detail['id'];  ?>" class="aui-flex">
                                <div class="aui-cou-img">
                                    <img src="<?php echo base_url().'public/home/images/' ?>icon-li-002.png ?>" alt="">
                                </div>
                                <div class="aui-flex-box">
                                    <p>我的反馈</p>
                                </div>
                            </a>
                            <?php 
                            $sub_role=explode(',',$_SESSION[SESS_USER_HOME]['sub_role_id']);
                            array_push($sub_role,$_SESSION[SESS_USER_HOME]['role_id']);
                            foreach ($sub_role as $k => $v):
                                if($v==WebRole::Student[XPHEnum::Value] || $v==WebRole::StudentInfoOfficer[XPHEnum::Value] || $v==WebRole::UnitStudentInfoOfficer[XPHEnum::Value]):
                                 ?>                   
                                 <div >
                                    <a href="<?php echo base_url().'Home/Student_feedback/' ?>Index" class="aui-flex">
                                        <div class="aui-cou-img">
                                            <img src="<?php echo base_url().'public/home/images/' ?>icon-li-003.png ?>" alt="">
                                        </div>
                                        <div class="aui-flex-box">
                                            <p>信息反馈</p>
                                        </div>
                                    </a>
                                </div>
                                <?php break; ?>
                            <?php endif ?>                            
                        <?php endforeach ?>
                        <?php 
                        $role=explode(',',$_SESSION[SESS_USER_HOME]['sub_role_id']);
                        array_push($role,$_SESSION[SESS_USER_HOME]['role_id']);
                        // foreach ($sub_role as $k => $v):
                            if(in_array(WebRole::SchoolSupervisor[XPHEnum::Value],$role) || in_array(WebRole::UnitSupervisor[XPHEnum::Value],$role)):
                             ?>
                             <div >
                                <div class="divHeight"></div>                            
                                <div  >
                                    <a href="<?php echo base_url().'Home/Supervisor_feedback/' ?>Index" class="aui-flex">
                                        <div class="aui-cou-img">
                                            <img src="<?php echo base_url().'public/home/images/' ?>icon-li-003.png ?>" alt="">
                                        </div>
                                        <div class="aui-flex-box">
                                            <p>信息反馈</p>
                                        </div>
                                    </a>     
                                </div> 
                                <?php endif ?>
                                <?php 
                                // $sub_role=explode(',',$_SESSION[SESS_USER_HOME]['sub_role_id']);
                                // array_push($sub_role,$_SESSION[SESS_USER_HOME]['role_id']);
                                // foreach ($sub_role as $k => $v):
                                    if(in_array(WebRole::SchoolSupervisor[XPHEnum::Value],$role) || in_array(WebRole::UnitSupervisor[XPHEnum::Value],$role)):
                                     ?>    
                                     <div >
                                        <a href="<?php echo base_url().'Home/Class_Assess/' ?>ClassIndex" class="aui-flex">
                                            <div class="aui-cou-img">
                                                <img src="<?php echo base_url().'public/home/images/' ?>icon-li-004.png ?>" alt="">
                                            </div>
                                            <div class="aui-flex-box">
                                                <p>督导听课评价</p>
                                            </div>
                                        </a>
                                    </div>
                                    <div >
                                        <a href="<?php echo base_url().'Home/Class_Assess/' ?>SubmittedAssess" class="aui-flex">
                                            <div class="aui-cou-img">
                                                <img src="<?php echo base_url().'public/home/images/' ?>icon-li-005.png ?>" alt="">
                                            </div>
                                            <div class="aui-flex-box">
                                                <p>已提交的听课评价</p>
                                            </div>
                                        </a>
                                    </div>
                                    <?php endif ?>
                                    <?php if(in_array(WebRole::SchoolSupervisor[XPHEnum::Value],$role) || in_array(WebRole::UnitSupervisor[XPHEnum::Value],$role)|| in_array(WebRole::UnitSupervisorGroupLeader[XPHEnum::Value],$role) || in_array(WebRole::ExternalSupervisor[XPHEnum::Value],$role)): ?>     
                                    <div >
                                        <a href="<?php echo base_url().'Home/Question/' ?>Index" class="aui-flex">
                                            <div class="aui-cou-img">
                                                <img src="<?php echo base_url().'public/home/images/' ?>icon-li-006.png?>" alt="">
                                            </div>
                                            <div class="aui-flex-box">
                                                <p>问卷管理</p>
                                            </div>
                                        </a>
                                    </div>
                                <?php endif ?>     
                            
                        </div>
                       
                    
                
            </div>
        </section>
    </body>
    </html>
